package com.megan.design.pattern.builder;

/**
 * @author: megan
 * @eMail: meganmail@vip.qq.com
 * @date: 2019/1/10 16:47
 * @version: v1.0
 * @description:
 */
public class Test {
    public static void main(String[] args) {
        CourseBuilder courseBuilder = new CourseActualBuilder();
        Coach coach = new Coach();
        coach.setCourseBuilder(courseBuilder);

        Course course = coach.makeCourse("name","ppt","video","article","qa");

        System.out.println(course.toString());
    }
}
